package com.iterator.demo2.main;

import com.iterator.demo2.Waitress;
import com.iterator.demo2.face.Menu;
import com.iterator.demo2.impl.DinerMenu;
import com.iterator.demo2.impl.PancakeHouseMenu;

/**
 * 迭代者模式：使用java.util.Iterator
 * 
 * @author dell
 * 
 */
public class MenuTestDrive {
	public static void main(String args[]) {
		Menu pancakeHouseMenu = new PancakeHouseMenu();
		Menu dinerMenu = new DinerMenu();

		Waitress waitress = new Waitress(pancakeHouseMenu, dinerMenu);

		waitress.printMenu();
	}

}
